import edgeFn from './edgeFn.js';
import nodeFn from './nodeFn.js';

export default function x6MainFn(x6BaseGraph) {
    let nodesMain = nodeFn(x6BaseGraph)
    let edgeMain = edgeFn(x6BaseGraph)
    var main = x6BaseGraph;
    let mainFn = {
        ...edgeMain,
        ...nodesMain,
        getCells(){
          return   main.getCells();
    },
        resetCells(){
            main.resetCells( [])
        }
    }
    return mainFn;
}